package com.css.dzj.dzjap.modules.jgxwother.service;

import com.css.dzj.dzjap.modules.apunit.entity.ApUnitEntity;
import com.css.dzj.dzjap.modules.jgxwother.entity.JgJgxwOtherActionEntity;
import com.querydsl.core.QueryResults;
import org.springframework.data.domain.PageRequest;
import org.springframework.data.domain.Pageable;

import javax.servlet.http.HttpServletRequest;
import java.util.HashMap;
import java.util.List;

public interface OtherService {

    //查
    JgJgxwOtherActionEntity getOther(String actionId);
    //添加
    String addOther(JgJgxwOtherActionEntity other);
    //修改
    void update(JgJgxwOtherActionEntity other);
    //删除
    Boolean deleteOther(String actionId);
    //分页查询
    QueryResults<JgJgxwOtherActionEntity> getAllOther(Pageable pageable);
    //多条件分页查询
    QueryResults<JgJgxwOtherActionEntity> getAllConOther(Pageable pageable, String superviseItemCode,String recordUniqueIdentity,String actionName,String actionCode,String checkBehaviorNumber,String superviseObject);

    HashMap getCount();

    HashMap getCountByYear(String year);
    Long getOpCheck(HttpServletRequest request);

    List<JgJgxwOtherActionEntity> getList(String superviseItemCode, String recordUniqueIdentity, String actionName, String actionCode, String checkBehaviorNumber, String superviseObject);

    List<JgJgxwOtherActionEntity> queryByIds(List<String> idList);

    Integer getTotalCount();

}
